def encB(i,j):
    msg='B'+chr(i)+chr(j)+chr(map[i][j].army//100)+chr(map[i][j].army%100)+chr(map[i][j].color)
    return msg
    
def encP(i):
    msg='P'+chr(i)+chr(player[i].army//100)+chr(player[i].army%100)+chr(player[i].land//100)+chr(player[i].land%100)
    return msg

def sendd(p,s):
    clientsocket[p].send(s.encode("ASCII"))

for i in range(1,numofpls+1):
    for j in range(1,numofpls+1):
        sendd(i,encP(j))

for i in range(1,n+1):
    for j in range(1+m+1):
        if(map[i][j].lazytag=True):
            for pla in range(1,numofpls+1):
                sendd(pla,encB(n,m))

